/**
 * @description  useSetStorageSync
 * @param {string} key 键
 * @param {*} data 存储值
 * @author 花东红
 * @time 2025/7/26
 */
export const useSetStorageSync = (key: string, data: any) => {
  if (!key) return;
  uni.setStorageSync(key, data);
};
/**
 * @description  useGetStorageSync
 * @param {string} key 键
 * @author 花东红
 * @time 2025/7/26
 */
export const useGetStorageSync = (key: string) => {
  if (!key) return;
  return uni.getStorageSync(key) ?? "";
};
/**
 * @description  useRemoveStorageSync
 * @param {string} key 键
 * @author 花东红
 * @time 2025/7/26
 */
export const useRemoveStorageSync = (key: string) => {
  if (!key) return;
  uni.removeStorageSync(key);
};
/**
 * @description  useClearStorageSync
 * @author 花东红
 * @time 2025/7/26
 */
export const useClearStorageSync = () => {
  uni.clearStorageSync();
};
